package com.svs.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.svs.common.base.BaseEntity;
import java.util.Date;
import com.svs.common.annotation.Excel;

/**
 * 短信发送记录表 sms_record
 * 
 * @author 杜建桥
 * @date 2019-11-06
 */
public class SmsRecord extends BaseEntity<SmsRecord> {

	private static final long serialVersionUID = 1L;
	
	
	/** 主键 */
		@Excel(name = "主键")
		private Long id;
	
	
	/** 手机号 */
		@Excel(name = "手机号")
		private String mobile;
	
	
	/** 验证码或者通知信息 */
		@Excel(name = "验证码或者通知信息")
		private String code;
	
	
	/** 发送时间 */
		@Excel(name = "发送时间")
		private Date createTime;
	
	
	/** 失效时间 */
		@Excel(name = "失效时间")
		private Date invalidTime;
	
	
	/** 是否有效  0：有效  1：无效 */
		@Excel(name = "是否有效  0：有效  1：无效")
		private Integer state;
	
	
	/** 类型  1：注册 */
		@Excel(name = "类型  1：注册")
		private Integer type;
	
	
	/** 更新时间 */
		@Excel(name = "更新时间")
		private Date modifyTime;
		
		private Integer sendFlag;

	public Integer getSendFlag() {
			return sendFlag;
		}

		public void setSendFlag(Integer sendFlag) {
			this.sendFlag = sendFlag;
		}

	public void setId(Long id) 
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public void setCode(String code) 
	{
		this.code = code;
	}

	public String getCode() 
	{
		return code;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setInvalidTime(Date invalidTime) 
	{
		this.invalidTime = invalidTime;
	}

	public Date getInvalidTime() 
	{
		return invalidTime;
	}
	public void setState(Integer state) 
	{
		this.state = state;
	}

	public Integer getState() 
	{
		return state;
	}
	public void setType(Integer type) 
	{
		this.type = type;
	}

	public Integer getType() 
	{
		return type;
	}
	public void setModifyTime(Date modifyTime) 
	{
		this.modifyTime = modifyTime;
	}

	public Date getModifyTime() 
	{
		return modifyTime;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mobile", getMobile())
            .append("code", getCode())
            .append("createTime", getCreateTime())
            .append("invalidTime", getInvalidTime())
            .append("state", getState())
            .append("type", getType())
            .append("modifyTime", getModifyTime())
            .toString();
    }
}
